package git.LengNanJun.day318.demo2;

public class Circular extends Graphical{
    public Circular(){
        super.draw("圆形");  // 调用父类方法draw并传参
    }

    public void count(int r){
        double pi = 3.14;
        double area = pi * r * r;
        System.out.printf("圆的面积为：%.2f \n" ,area);
    }
}
